import request from '@/utils/request'
// 就诊人新增
export function patientBase(data) {
  return request({
    url: '/project/patientBase',
    method: 'post',
	data:data
  })
}
// 就诊人列表查询
export function getPatientBaseList(data) {
  return request({
    url: '/project/patientBase/list',
    method: 'get',
	params:data
  })
}
// 就诊人详情
export function getPatientBaseData(data) {
  return request({
    url: '/project/patientBase/getInfo',
    method: 'post',
	data:data
  })
}
// 修改就诊人信息
export function putPatientBase(data) {
  return request({
    url: '/project/patientBase',
    method: 'put',
	data:data
  })
}
// 就诊人删除
export function deletePatientBase(data) {
  return request({
    url: '/project/patientBase/remove',
    method: 'post',
	data:data
  })
}
// 电子健康卡解绑
export function deleteHealthCard(data) {
  return request({
    url: '/project/healthCard/'+data,
    method: 'delete',
  })
}
// 电子健康卡列表
export function getHealthCardList(data) {
  return request({
    url: '/project/healthCard/list',
    method: 'get',
	params:data
  })
}
// 根据身份证号和姓名查询his绑卡信息(应该只返回一条)
export function getInfoMatch(data) {
  return request({
    url: '/project/patientBase/getInfoMatch',
    method: 'post',
	params:data
  })
}
// 候诊查询
export function getWaitInfo(data) {
  return request({
    url: '/project/patientBase/getWaitInfo',
    method: 'post',
	params:data
  })
}